//
//  ViewController.h
//  BlueTooth
//
//  Created by 王汉昌 on 15/11/23.
//  Copyright © 2015年 匹诺曹. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreBluetooth/CoreBluetooth.h>
@interface ViewController : UIViewController <CBCentralManagerDelegate, CBPeripheralDelegate>

@property (nonatomic, strong) UITableView *tableView;
@end

@interface NearbyPeripheralInfo : NSObject

@property (nonatomic,strong) CBPeripheral *peripheral;
@property (nonatomic,strong) NSDictionary *advertisementData;
@property (nonatomic,strong) NSNumber *RSSI;

@end

@interface TableViewCell : UITableViewCell<CBPeripheralDelegate>
@property (nonatomic,strong) CBPeripheral *peripheral;
@property (nonatomic,strong) NSDictionary *advertisementData;
@property (nonatomic,strong) NSNumber *RSSI;

- (void)setPeripheral:(NearbyPeripheralInfo *)info;
@end

